package com.zdb.demo.design.pattern.structural.bridge.demo1;

public class Test {

    public static void main(String[] args) {
        Bank icbcBank = new ICBCBank(new DepositAccount());
        icbcBank.openAccount().showAccountType();
        Bank icbcBank2 = new ICBCBank(new SavingAccount());
        icbcBank2.openAccount().showAccountType();

        System.out.println("---------------------------------");
        Bank abcBank = new ABCBank(new DepositAccount());
        abcBank.openAccount().showAccountType();
        Bank abcBank2 = new ABCBank(new SavingAccount());
        abcBank2.openAccount().showAccountType();
    }
}
